package com.project.bean;

import java.time.LocalDate;

/**
 * 班级实体类
 */
public class ClassBean {
    /**班级编号*/
    private int id;
    /**班级名称*/
    private String className;
    /**开班时间*/
    private LocalDate classTime;
    /**带班老师*/
    private String teacher;

    public ClassBean() {
    }

    public ClassBean(String className, LocalDate classTime, String teacher) {
        this.className = className;
        this.classTime = classTime;
        this.teacher = teacher;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public LocalDate getClassTime() {
        return classTime;
    }

    public void setClassTime(LocalDate classTime) {
        this.classTime = classTime;
    }

    public String getTeacher() {
        return teacher;
    }

    public void setTeacher(String teacher) {
        this.teacher = teacher;
    }

    @Override
    public String toString() {
        return className;
    }

//    @Override
//    public String toString() {
//        return "ClassBean{" +
//                "id=" + id +
//                ", className='" + className + '\'' +
//                ", classTime=" + classTime +
//                ", teacher='" + teacher + '\'' +
//                '}'+"\n";
//    }
}
